<?php

include "config.php";

$img = $_POST['img'];
$category = $_POST['category'];
$text = $_POST['text'];	
$query = "INSERT INTO  `items` (`img` ,`category` ,`text`) VALUES ('$img',  '$category', '$text')";

mysqli_query($db,$query);

echo mysqli_error($db);
?>

